meson: Always fetch pangoft2_dep from the pango subproject
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 23 Jul 2018 09:25:25 +0000 (14:55 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Fri, 12 Oct 2018 07:38:48 +0000 (13:08 +0530)
This ensures that we will use pangoft2 if it is available, and not if
it is not available.

See: https://gitlab.gnome.org/GNOME/pango/merge_requests/6

meson.build

index 1483353cfad834558fcf7016f072eaba1f5d507a..53504f9279756399dd88087d1135d49859f079a5 100644 (file)
@@ -327,12 +327,8 @@ pango_dep      = dependency('pango', version: pango_req,
 
 # Require PangoFT2 if on X11 or wayland
 require_pangoft2 = wayland_enabled or x11_enabled
-
-if require_pangoft2
-  pangoft_dep  = dependency('pangoft2', fallback : ['pango', 'libpangoft2_dep'])
-else
-  pangoft_dep  = dependency('pangoft2', required: false)
-endif
+pangoft_dep    = dependency('pangoft2', required: require_pangoft2,
+                            fallback : ['pango', 'libpangoft2_dep'])
 
 if pangoft_dep.found()
   # Need at least 2.7.1 for FT_Get_Var_Design_Coordinates()